/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10040;
}

.header h1 {
    font-size: 1.5em;
    font-weight: 600;
    color: #4a5568;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.settings-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 导航控制栏 */
.navigation-control-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.navigation-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navigation-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.navigation-toggle-btn:active {
    transform: translateY(0);
}

.travel-guide-toggle-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.travel-guide-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.travel-guide-toggle-btn:active {
    transform: translateY(0);
}

/* 导航面板 */
.navigation-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.navigation-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 旅游导航生成器样式 */
.travel-guide-generator {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.generator-title {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

.generator-input-section {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.generator-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.generate-guide-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.generate-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.clear-prompt-btn {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-prompt-btn:hover {
    background: rgba(156, 163, 175, 0.2);
    border-color: #d1d5db;
}

/* 面板分隔线 */
.panel-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 25px 0;
    border-radius: 1px;
}

/* 导航设置标题 */
.settings-title {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

/* 结果展示区域 */
.travel-guide-results {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    animation: slideIn 0.3s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-header h4 {
    color: #2d3748;
    margin: 0;
    font-size: 1.1em;
}

.results-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-map-btn, .export-guide-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-map-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.view-map-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.export-guide-btn {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.export-guide-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

/* 景点列表样式 */
.attractions-list {
    display: grid;
    gap: 15px;
}

.attraction-item {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.attraction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attraction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.attraction-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.attraction-rating {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.attraction-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.attraction-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}

/* 加载状态 */
.guide-loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-top: 20px;
}

.guide-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 20px;
}

/* 旅游地图模态框 */
.travel-map-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
    height: 600px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.travel-map-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.travel-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.travel-map-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-travel-map-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-travel-map-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.travel-map-container {
    flex: 1;
    position: relative;
    background: #f8fafc;
}

.travel-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4a5568;
}

.map-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.travel-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 漫游功能样式 */
.roaming-section {
    flex-direction: column;
    align-items: stretch;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.roaming-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-align: center;
}

.roaming-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-row label {
    min-width: 50px;
    font-weight: 500;
    color: #4a5568;
}

.roaming-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.roaming-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.roaming-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.roaming-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.roaming-btn:active {
    transform: translateY(0);
}

.roaming-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-top: 10px;
    color: #4a5568;
    font-weight: 500;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 漫游成功卡片样式 */
.roaming-success-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

/* 漫游banner样式 */
.roaming-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.roaming-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.roaming-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.roaming-banner-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.roaming-banner-overlay h4 {
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 漫游卡片内容区域 */
.roaming-success-card .roaming-header,
.roaming-success-card .place-details,
.roaming-success-card .place-photos,
.roaming-success-card .roaming-actions {
    padding: 20px;
}

.roaming-success-card .roaming-header {
    padding-top: 15px;
    padding-bottom: 10px;
}

.roaming-header h3 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.location-info {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.location-info h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.location-info .coordinates {
    color: #666;
    font-family: monospace;
    font-size: 0.9em;
    margin: 5px 0;
}

.location-info .location-type {
    color: #4a5568;
    font-size: 0.9em;
    margin: 5px 0;
}

.roaming-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.roaming-header h3 {
    color: #4a5568;
    font-size: 1.5em;
    margin-bottom: 8px;
}

.roaming-header p {
    color: #718096;
    font-size: 1.1em;
}

.place-details {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.place-details h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.2em;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 8px;
}

.place-details > div {
    margin: 8px 0;
    padding: 5px 0;
    color: #4a5568;
    line-height: 1.4;
}

.place-details .rating {
    color: #d69e2e;
    font-weight: bold;
}

.place-details .address {
    color: #2b6cb0;
}

.place-details .phone {
    color: #38a169;
}

.place-details .website a {
    color: #667eea;
    text-decoration: none;
}

.place-details .website a:hover {
    text-decoration: underline;
}

.place-details .summary {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    padding: 10px;
    font-style: italic;
    border-left: 4px solid #667eea;
}

.place-details .types {
    color: #805ad5;
    font-size: 0.9em;
}

.place-details h4 {
    color: #4a5568;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.place-details > div {
    margin: 8px 0;
    color: #718096;
}

.rating {
    font-size: 1.1em;
    font-weight: 600;
}

.website a {
    color: #667eea;
    text-decoration: none;
}

.website a:hover {
    text-decoration: underline;
}

.place-photos {
    margin: 15px 0;
}

.place-photos h5 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.place-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.place-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.roaming-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    flex-wrap: wrap;
}

/* 附近景点相关样式 */
.nearby-attractions-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.nearby-attractions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

.attractions-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
}

.attractions-title h3 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.attractions-title p {
    color: #718096;
    font-size: 0.9em;
    margin: 0;
}

.attractions-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.back-btn {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4);
}

.retry-btn {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.4);
}

.no-attractions, .error-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.no-attractions h3, .error-container h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.no-attractions p, .error-container p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.loading-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-container p {
    color: #4a5568;
    margin-top: 15px;
    font-size: 1.1em;
}

/* 城市选择器样式 */
.city-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.city-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.city-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    margin-top: 5px;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-city {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.search-result-country {
    font-size: 0.9em;
    color: #718096;
}

.search-result-attractions {
    font-size: 0.8em;
    color: #a0aec0;
    margin-top: 4px;
}

/* 选中的城市信息卡片 */
.selected-city-info {
    margin-top: 15px;
}

.city-info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.city-info-card h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-info-card p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.4;
}

.city-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

/* 城市选择器动画 */
@keyframes cityCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-city-info {
    animation: cityCardSlideIn 0.3s ease-out;
}

.explore-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 照片模态框样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.photo-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: background-color 0.3s;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    font-weight: 500;
    color: #4a5568;
}

.setting-group select,
.setting-group input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.setting-group select:focus,
.setting-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* 状态显示区 */
.status-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.current-location,
.coordinates-info,
.accuracy-info,
.compass-info,
.direction-text {
    text-align: center;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.label {
    display: block;
    font-weight: 500;
    color: #718096;
    margin-bottom: 5px;
    font-size: 0.9em;
}

#currentLocation,
#coordinates,
#accuracy,
#compassDirection,
#directionText {
    font-weight: 600;
    color: #2d3748;
    font-size: 1em;
    display: block;
}

/* 指南针样式 - 响应式设计 */
.compass-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    /* 确保容器不会被挤压 */
    min-height: 200px;
    align-items: center;
}

.compass {
    /* 使用相对单位和最小/最大尺寸确保形状稳定 */
    width: clamp(120px, 15vmin, 180px);
    height: clamp(120px, 15vmin, 180px);
    border: 3px solid #4a5568;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, #f7fafc 0%, #edf2f7 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    /* 确保指南针始终保持圆形 */
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.compass:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.needle-diamond {
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 指南针中心点 - 响应式设计 */
.compass-center {
    position: absolute;
    /* 中心点大小相对于指南针大小自适应 */
    width: clamp(12px, 10%, 20px);
    height: clamp(12px, 10%, 20px);
    background: #4a5568;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 北向红色菱形 */
.needle-north {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 40px solid #e53e3e;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(229, 62, 62, 0.3));
}

/* 南向绿色菱形 */
.needle-south {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 40px solid #38a169;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 -2px 4px rgba(56, 161, 105, 0.3));
}

.compass-directions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.direction {
    position: absolute;
    font-weight: bold;
    /* 方向标识字体大小自适应 */
    font-size: clamp(12px, 2.5vmin, 18px);
    color: #4a5568;
}

.direction.north {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #e53e3e;
}

.direction.east {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.direction.south {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.direction.west {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* 控制按钮 */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.explore-btn,
.refresh-btn,
.end-journey-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.explore-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.refresh-btn:hover {
    background: white;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.end-journey-btn {
    background: linear-gradient(135deg, #FD746C 0%, #FF9068 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(253, 116, 108, 0.4);
}

.end-journey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 116, 108, 0.6);
}

/* 历史访问场景 */
.journey-history-section {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
}

.journey-history-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.history-places-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-place-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
}

.history-place-card::before {
    content: '✅';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

.history-place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* 有锐评的历史场景卡片样式 */
.history-place-card.has-review {
    border: 2px solid rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-place-card.has-review:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
}

.history-place-card.has-review::after {
    content: '点击查看锐评';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.history-place-card.has-review:hover::after {
    opacity: 1;
}

/* 无锐评的历史场景卡片 */
.history-place-card.no-review {
    opacity: 0.8;
    position: relative;
}

.history-place-card.no-review::after {
    content: '暂无锐评';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 地点卡片容器 */
.places-container {
    display: grid;
    gap: 20px;
}

.place-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.place-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.place-content {
    padding: 20px;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.place-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.place-distance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.place-coordinates {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.place-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 景点详细信息样式 */
.place-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
}

.price-highlight {
    color: #e74c3c;
    font-weight: bold;
}

.free-price {
    color: #27ae60;
    font-weight: bold;
}

.place-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-weight: 500;
}

.place-location-info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .place-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.place-mode {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 加载指示器 */
.loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #4a5568;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.3em;
    }
    
    .location-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 移动设备上指南针已通过clamp()自适应，无需额外设置 */
    .compass-container {
        min-height: 160px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    /* 导航控制栏移动端适配 */
    .navigation-control-bar {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-toggle-btn,
    .travel-guide-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    #navigation-toggle-text,
    #travel-guide-toggle-text {
        display: none;
    }
    
    .navigation-toggle-btn::after,
    .travel-guide-toggle-btn::after {
        content: attr(title);
        margin-left: 8px;
        font-size: 14px;
    }
    
    /* 旅游导航生成器移动端适配 */
    .travel-guide-generator {
        padding: 15px;
    }
    
    .generator-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .generate-guide-btn,
    .clear-prompt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .results-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* 旅游地图模态框移动端适配 */
    .travel-map-modal {
        width: 95%;
        height: 85vh;
        max-height: 85vh;
    }
    
    .travel-map-header {
        padding: 15px 20px;
    }
    
    .travel-map-header h3 {
        font-size: 1.2rem;
    }
}

/* 错误状态 */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* 成功状态 */
.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* 日志显示区 */
.log-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.log-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2em;
}

.clear-log-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.clear-log-btn:hover {
    background: #c53030;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f7fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.log-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid;
}

.log-entry.info {
    background: #ebf8ff;
    border-left-color: #3182ce;
    color: #2c5282;
}

.log-entry.success {
    background: #f0fff4;
    border-left-color: #38a169;
    color: #276749;
}

.log-entry.warning {
    background: #fffbeb;
    border-left-color: #d69e2e;
    color: #744210;
}

.log-entry.error {
    background: #fed7d7;
    border-left-color: #e53e3e;
    color: #742a2a;
}

.log-timestamp {
    font-weight: bold;
    margin-right: 8px;
}

/* ========== 背包客模式：到达确认界面 ========== */
.arrival-confirmation {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.arrival-actions h3 {
    margin: 0 0 16px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.arrival-actions p {
    margin: 0 0 24px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.arrival-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.arrival-btn, .back-btn, .continue-btn, .end-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.arrival-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.arrival-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 继续探索界面样式 */
.continue-exploration {
    text-align: center;
}

.continue-exploration h3 {
    color: #2d3748;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.continue-exploration p {
    color: #4a5568;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.continue-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.continue-btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
}

.continue-btn:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    transform: translateY(-2px);
}

.end-btn {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    color: white;
    border: none;
}

.end-btn:hover {
    background: linear-gradient(45deg, #dd6b20, #c05621);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .arrival-buttons, .continue-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .arrival-btn, .back-btn, .continue-btn, .end-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== 场景选择模式样式 ========== */
.selection-mode .place-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-selector {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 单选模式：隐藏原生radio button */
.scene-radio {
    display: none;
}

.scene-radio-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scene-radio-label:hover .radio-indicator {
    transform: scale(1.2);
}

.radio-indicator {
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radio-indicator.selected {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* 背包客模式：专注的场景样式 */
.place-card.focused-scene {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.place-card.hidden-scene {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.reject-btn {
    background: #fff;
    border: 2px solid #e53e3e;
    color: #e53e3e;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.reject-btn:hover {
    background: #e53e3e;
    color: white;
    transform: rotate(90deg);
}

.reject-btn.active {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.reject-btn.active:hover {
    background: #276749;
    border-color: #276749;
    transform: rotate(-90deg);
}

/* 选中和划掉状态 */
.place-card.selected {
    border: 3px solid #667eea;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.place-card.rejected {
    opacity: 0.6;
    position: relative;
}

.place-card.rejected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e53e3e;
    transform: rotate(-5deg);
    pointer-events: none;
}

/* 🆕 当前位置卡片样式 */
.place-card.current-location {
    border: 3px solid #48bb78;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.3);
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    position: relative;
}

.place-card.current-location::before {
    content: '📍 当前位置';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #48bb78;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 10;
}

.current-badge {
    background: #48bb78;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 8px;
}

.current-location-btn {
    background: #48bb78 !important;
    color: white !important;
    border: 2px solid #48bb78 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.current-location-btn:hover {
    background: #48bb78 !important;
    transform: none !important;
}







/* 旅程总结动画 */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Google街景样式 */
.streetview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 生成图片容器样式 */
.generated-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
}

.generated-selfie {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.generated-selfie:hover {
    transform: scale(1.02);
}

.image-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generated-image-container:hover .image-hint {
    opacity: 1;
}

/* 卡通风格关闭按钮 */
.selfie-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 1000;
}

.selfie-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #ff5252, #ff7979);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 取消按钮样式 - 与生成按钮保持一致 */
.cancel-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff5252, #ff7979);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 加载动画居中显示 */
.selfie-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.loading-hint {
    margin: 0;
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

/* 加载动画spinner */
.selfie-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-right: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分享按钮样式 - 与下载按钮保持一致 */
.share-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* 景点卡片按钮样式 - 卡通风格和立体感 */
.action-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s;
}

/* 生成合影按钮 - 粉紫色渐变 */
.selfie-btn {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.selfie-btn:hover {
    background: linear-gradient(135deg, #ff5e8a, #b73e5e);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.selfie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.selfie-btn:hover::before {
    left: 100%;
}

/* 查看街景按钮 - 蓝绿色渐变 */
.streetview-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.streetview-btn:hover {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.streetview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.streetview-btn:hover::before {
    left: 100%;
}

/* 按钮组合样式 */
.place-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* 结果展示区域 */
.selfie-result {
    padding: 20px;
    text-align: center;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.streetview-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.streetview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.streetview-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-streetview-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-streetview-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.streetview-controls {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.streetview-control-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.streetview-control-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.streetview-container {
    flex: 1;
    position: relative;
    min-height: 400px;
    background: #f8fafc;
}

#streetviewContainer {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.streetview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4a5568;
}

.streetview-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: streetviewSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes streetviewSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.streetview-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4a5568;
    max-width: 300px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.retry-streetview-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.retry-streetview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.streetview-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 8px;
}

.streetview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* 全屏模式 */
.streetview-modal.fullscreen {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.streetview-modal.fullscreen .streetview-container {
    min-height: calc(100vh - 200px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .scene-selector {
        top: 10px;
        right: 10px;
        padding: 8px;
    }

    .streetview-modal {
        max-width: 95vw;
        max-height: 95vh;
    }

    .streetview-header {
        padding: 15px 20px;
    }

    .streetview-controls {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .streetview-control-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .streetview-info {
        padding: 10px 20px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .streetview-container {
        min-height: 300px;
    }
}

/* 媒体容器样式 */
.place-media {
    position: relative;
    overflow: hidden;
}

.place-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.place-image:hover {
    transform: scale(1.05);
}

/* 视频覆盖层 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.place-media:hover .video-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 视频模态框 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 上传预览样式 */
.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
}

.upload-placeholder {
    pointer-events: none;
}

/* 生成按钮样式优化 */
.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.generate-btn:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.generate-btn-enabled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
    position: relative !important;
    z-index: 10002 !important; /* 确保按钮在最上层 */
}

/* 移动端视频和图片模态框优化 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        max-height: 80%;
    }
    
    .video-container {
        height: 250px;
    }
    
    .image-modal-content {
        width: 95%;
        max-height: 80%;
    }
    
    .video-modal-header,
    .image-modal-header {
        padding: 10px 15px;
    }
    
    .video-modal-header h3,
    .image-modal-header h3 {
        font-size: 14px;
    }
}

/* 照片上传模态框样式 */
.photo-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* 防止覆盖内容 */
}

.photo-upload-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 显示时启用鼠标事件 */
}

/* 景点信息摘要样式 */
.place-info-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border: 1px solid #e1e8ed;
}

.place-info-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.info-category {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.info-location {
    margin: 5px 0;
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
}

.info-description {
    margin: 10px 0 0 0;
    color: #34495e;
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
}

/* 提示词区域样式 */
.prompt-section {
    margin: 20px 0;
}

.prompt-section label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.prompt-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.prompt-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.photo-upload-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10001;
    pointer-events: auto !important; /* 确保内容始终可以接收鼠标事件 */
}

.photo-upload-modal.show .photo-upload-content {
    transform: scale(1);
}

.photo-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.photo-upload-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.photo-upload-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.photo-upload-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.photo-upload-body {
    padding: 25px;
}

/* 上传区域 */
.upload-section {
    margin-bottom: 25px;
}

/* 上传区域布局 */
.upload-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 移动端上传区域布局 */
@media (max-width: 768px) {
    .upload-section {
        flex-direction: column;
        gap: 15px;
    }
}

/* 合影生成器模态框样式 */
.selfie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.selfie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    animation: modalSlideIn 0.3s ease-out;
}

.selfie-modal-content {
    padding: 0;
}

.selfie-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.selfie-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.selfie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.selfie-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.selfie-body {
    padding: 30px;
}

.attraction-info {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #e1e8f0;
}

.attraction-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attraction-location {
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.upload-group {
    flex: 1;
}

.upload-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 16px;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.has-file {
    border-color: #48bb78;
    background: #f0fff4;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #a0aec0;
}

.upload-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.file-preview {
    display: none;
    margin-top: 15px;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-info {
    margin-top: 10px;
    font-size: 12px;
    color: #718096;
}

.custom-prompt-section {
    margin-bottom: 25px;
}

.custom-prompt-section label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 16px;
}

.custom-prompt-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.custom-prompt-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.generate-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .selfie-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .selfie-header {
        padding: 20px 25px 15px;
    }
    
    .selfie-header h3 {
        font-size: 20px;
    }
    
    .selfie-body {
        padding: 20px;
    }
    
    .upload-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .upload-area {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .upload-icon {
        font-size: 24px;
    }
    
    .generate-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

.upload-group {
    flex: 1;
}

.upload-group h4 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #e8f0ff;
    transform: scale(1.02);
}

.upload-placeholder {
    color: #666;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-area p {
    margin: 8px 0;
    font-size: 16px;
}

.upload-hint {
    font-size: 14px !important;
    color: #999 !important;
}

/* 照片预览 */
.photo-preview {
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.change-photo-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.change-photo-btn:hover {
    background: #5a6268;
}

/* 提示词区域 */
.prompt-section {
    margin-bottom: 25px;
}

.prompt-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.prompt-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.prompt-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 生成区域 */
.generate-section {
    margin-bottom: 25px;
    text-align: center;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 结果区域 */
.result-section {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.result-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
}

.result-image-container {
    text-align: center;
}

.result-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn, .regenerate-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn {
    background: #28a745;
    color: white;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.regenerate-btn {
    background: #ffc107;
    color: #212529;
}

.regenerate-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-upload-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .photo-upload-header {
        padding: 15px 20px;
    }
    
    .photo-upload-header h3 {
        font-size: 16px;
    }
    
    .photo-upload-body {
        padding: 20px;
    }
    
    .upload-section {
        flex-direction: column;
    }
    
    .upload-group {
        width: 100%;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .generate-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn, .regenerate-btn {
        width: 200px;
    }
}

/* ==================== Doro合影样式 ==================== */

/* Doro按钮样式 */
.doro-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.doro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Doro模态框 */
.doro-selfie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.doro-modal-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doro-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doro-close-btn:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

/* Doro头部 */
.doro-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
}

.doro-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.doro-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Doro主体 */
.doro-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.doro-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.doro-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 20px;
}

.doro-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    padding: 0 50px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-item.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #666;
}

.step-item.active .step-label {
    color: #667eea;
    font-weight: 500;
}

.step-line {
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item:last-child .step-line {
    display: none;
}

/* 上传步骤 */
.upload-step {
    animation: fadeIn 0.3s ease;
}

.upload-step h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Doro选择器 */
.doro-selector-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.doro-selector-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.doro-tab {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #666;
}

.doro-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.doro-tab:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

.doro-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.doro-item {
    background: white;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.doro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doro-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: scale(1.05);
}

.doro-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.doro-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.doro-upload-custom {
    margin-top: 20px;
}

.no-doros {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* 预览区域 */
.doro-preview-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.preview-item {
    text-align: center;
}

.preview-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

/* Doro选项 */
.doro-options {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.option-group label {
    min-width: 100px;
    color: #666;
    font-weight: 500;
}

.option-group select,
.option-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.option-group select:focus,
.option-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Doro操作按钮 */
.doro-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.doro-back-btn,
.doro-next-btn,
.doro-generate-btn,
.doro-cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.doro-back-btn {
    background: #f0f0f0;
    color: #666;
}

.doro-back-btn:hover {
    background: #e0e0e0;
}

.doro-next-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.doro-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.doro-generate-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 14px 32px;
    font-size: 16px;
}

.doro-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.doro-generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.doro-cancel-btn {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.doro-cancel-btn:hover {
    background: linear-gradient(135deg, #da190b, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.skip-btn {
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #999;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.skip-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Doro加载状态 */
.doro-loading {
    text-align: center;
    padding: 60px 20px;
}

.doro-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

/* Doro结果展示 */
.doro-result {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* Doro错误提示 */
.doro-error {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border-radius: 15px;
    margin: 20px;
    border: 2px solid #ffcc02;
}

.doro-error .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(5deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    75% { transform: rotate(-1deg); }
}

.doro-error h4 {
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.doro-error p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Doro遮罩层 */
.doro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .doro-selfie-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .doro-header {
        padding: 20px;
    }
    
    .doro-header h3 {
        font-size: 24px;
    }
    
    .doro-body {
        padding: 20px;
    }
    
    .step-indicator {
        padding: 0 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .doro-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .doro-item img {
        height: 80px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .option-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .option-group label {
        margin-bottom: 5px;
    }
    
    .doro-actions {
        flex-wrap: wrap;
    }
    
    .doro-back-btn,
    .doro-next-btn,
    .doro-generate-btn,
    .doro-cancel-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* 动画 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 新增：头部布局样式 */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2px;
    color: #718096;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    z-index: 10060;
}

.language-button {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-button:hover {
    background: rgba(102, 126, 234, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 10px 0;
    min-width: 200px;
    z-index: 10050;
    margin-top: 5px;
}

.language-option {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #e3f2fd;
    color: #1976d2;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    z-index: 10060;
}

.user-button {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.user-button:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

/* 用户头像容器 */
.user-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 用户头像样式 */
.user-avatar {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* 登录状态的头像样式 */
.user-avatar.logged-in {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* 未登录状态的头像样式 */
.user-avatar.guest {
    background: rgba(156, 163, 175, 0.3);
    color: #6b7280;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px 0;
    min-width: 200px;
    z-index: 10050;
    margin-top: 5px;
}

.user-info {
    padding: 0 20px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.user-info div {
    font-size: 14px;
    color: #666;
}

.user-actions {
    padding: 0 10px;
}

.user-actions button {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    transition: background 0.2s ease;
    font-size: 14px;
}

.user-actions button:hover {
    background: #f8f9fa;
}

/* 认证模态框样式 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    position: relative;
}

.auth-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-body {
    padding: 0;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 语言选择器增强样式 */
.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 2px 0;
}

.language-option:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}

.language-option.active {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}

.language-option.active:hover {
    background-color: #1d4ed8;
}

.language-flag {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* 语言下拉菜单增强 */
.language-dropdown {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 8px;
}

.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
